package com.czf.personal.service;

import com.czf.common.entity.UserEconomicCapacity;
import com.czf.common.mapper.UserEconomicCapacityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zfChen
 * @create 2022/4/20 15:18
 */
@Service
public class UserEconomicCapacityServiceImpl {

    @Autowired
    private UserEconomicCapacityMapper userEconomicCapacityMapper;

    public int insert(UserEconomicCapacity userEconomicCapacity){
        int insert = userEconomicCapacityMapper.insert(userEconomicCapacity);
        return insert;
    }

    public int update(UserEconomicCapacity userEconomicCapacity){
        int i = userEconomicCapacityMapper.updateById(userEconomicCapacity);
        return i;
    }

    public UserEconomicCapacity select(Long userId){
        UserEconomicCapacity userEconomicCapacity = userEconomicCapacityMapper.selectById(userId);
        return userEconomicCapacity;
    }
}
